use "/Users/scottfabramson/Dropbox/Job Market Paper/IO Revisions/Replication_Files/Replication_Main_Text/Table_1/data_table1"


tsset ID Year

tabulate Year, g(y)
generate instrument= abs(Temp-10.5)
generate treatment= log(Urban_Pop+.001)




*** TABLE 1 ****


reg Entrants treatment, vce(cluster ID)

eststo a1

nbreg Entrants treatment, vce(cluster ID)


eststo a2

reg Entrants treatment y*, vce(cluster ID)


eststo a3


nbreg Entrants treatment y*, dispersion(mean) vce(cluster ID)


eststo a4


reg Entrants treatment X Y y*, vce(cluster ID)

eststo a5


nbreg Entrants treatment X Y y*, dispersion(mean) vce(cluster ID)


eststo a6



*** This Produces the Output in Table 1 ****


estout a1 a2 a3 a4 a5 a6, cells(b(star fmt(2))  ci(par fmt(2))) style(tex) stats(r2 alpha) drop(y* X Y _cons)









